module.exports = app => {
    const { router, controller } = app;
    const report = app.middleware.report({title: 'report single'});

    router.get('/view/news', controller.news.news);
    router.get('/api/news/getNewsList', controller.news.getNewsList);
    router.get('/api/news/getNews/:id', report, controller.news.getNews);
    router.get('/api/news/newsMovie', controller.news.getNewsMovie);

    router.post('/api/pub/test/work', controller.news.testWork);
};